<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>파일 업로드 :-)</title>
<script type="text/javascript">
	function check(){
		//alert("aa");
		if(frm.sword.value===""){
			alert("검색어를 입력하시오");
			frm.sword.focus();
			return;
		}
		frm.submit();
	}
</script>
</head>
<body bgcolor="beige">
<jsp:include page="../common/top.jsp" />
<form action="file_upload.jsp?flag=insert" method="post" enctype="multipart/form-data">
<!-- enctype="multipart/form-data" 파일이나 대용량 데이터 보낼때 데이터 전송 방식 --> 
	<br>
		<br>
		<h3>&nbsp;&nbsp;
			<b><img src="../img/file.jpg" /> 자료실 - 파일 등록 및 컴포넌트</b>
		</h3><hr>
		<table>
			<tr>
				<td><b>Name</b></td>
				<td align="left"><input type="text" name="user_name"/></td>	
			</tr>
			<tr>
				<td><b>Title</b></td>
				<td align="left"><input type="text" name="filename"/></td>	
			</tr>
			<tr>
				<td><b>File Select</b></td>
				<td align="left"><input type="file" name="fdata" size="50"/></td>
			</tr>
			<tr>
				<td> 
				<b>File description</b>
				</td>
				<td colspan="3">
					<textarea name="cont" rows="10" cols="70"></textarea>
					<!-- style="resize:none;" txtarea값고정 -->
				</td>
			</tr>
		</table>
<hr>
<table align="center">
	<tr>
		<td><input type="submit" value="Add" />
		<td><input type="reset" value="Again" />
		<td><input type=button value="cencle" onClick="location.href='file_main.jsp'"/>
	</tr>
</table>
</form>
</body>
</html>